<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="">
        <label for="username">用户名</label>
        <input id="username" type="text" name="username">
        <br>
        <label for="password">密码</label>
        <input id="password" type="password" name="password"><!--密码类型-->
        <input type="submit" value="登录"><!--提交类型-->
    </form>

    <form action="">
        <!--单选类型：name值需要一样，否则就不是同一组单选-->
        <input type="radio" name="sex" value="male">男<br>
        <input type="radio" name="sex" value="female">女
    </form>

    <form action="">
        <!-- 多选类型 -->
        <input type="checkbox" name="info" value="game">打游戏
        <input type="checkbox" name="info" value="music">听音乐
        <input type="checkbox" name="info" value="sports">运动
    </form>

    <form action="">
        <!-- 文件类型 -->
        <input type="file">
    </form>
</body>

</html>